﻿je_id_north_empire = {
	icon = "gfx/interface/icons/event_icons/event_military.dds"

	is_shown_when_inactive = {

	exists = c:CHI
	this = c:CHI
	
				
	}

	possible = {
	
	is_subject = no
		
			

	}

	complete = {
	has_technology_researched = colonization
		any_scope_building = {
			region = sr:region_manchuria
			is_building_type = building_barracks
			level >= 100
		}
	}

	fail = {
      always = no
	}

	on_complete = {
	sr:region_west_siberia = {
	every_scope_state = {
					this.state_region = {
				add_claim = ROOT
			}
		}
		
		}
	sr:region_east_siberia = {
			every_scope_state = {
						this.state_region = {
				add_claim = ROOT
			}
		}
		
		}
			

	}

	weight = 10000
	#should_be_pinned_by_default = yes
}
je_id_import_mine_machine = {
	icon = "gfx/interface/icons/event_icons/event_trade.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:han
	
				
	}

	possible = {
	has_technology_researched =	shaft_mining
			

	}

	complete = {


		any_scope_building = {
			is_building_type = building_iron_mine
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
	}

	fail = {
     has_technology_researched = atmospheric_engine
	}

	on_complete = {
		add_technology_progress = { progress = 9000 technology = atmospheric_engine }
	}

	weight = 10000
	#should_be_pinned_by_default = yes
}

je_id_import_mil_data_machine = {
	icon = "gfx/interface/icons/event_icons/event_military.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:han
	
				
	}

	possible = {
	
			has_technology_researched =	centralization

	}

	complete = {
			any_scope_building = {
			is_building_type = building_barracks
			occupancy >= 1
			level >= 50
		}
		is_researching_technology = general_staff
	}

	fail = {
      has_technology_researched = general_staff
	}

	on_complete = {
		add_technology_progress = { progress = 36000 technology = general_staff }
		add_technology_progress = { progress = 36000 technology = law_enforcement }
	}

	weight = 10000
	#should_be_pinned_by_default = yes
}
je_id_import_higher_school_data_machine = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:han
	
				
	}

	possible = {
	
			has_technology_researched =	centralization

	}

	complete = {
		has_technology_researched = academia

		
	}

	fail = {
      has_technology_researched = central_archives
	}

	on_complete = {
		add_technology_progress = { progress = 36000 technology = central_archives }
	}

	weight = 10000
	#should_be_pinned_by_default = yes
}
je_id_import_psy_data_machine = {
	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:han
	
				
	}

	possible = {
	
			has_technology_researched =	empiricism

	}

	complete = {
		has_technology_researched =	central_archives 	
		

		any_scope_building = {
			is_building_type = building_university
			occupancy >= 1.0
			level >= 25
		}
		
	}

	fail = {
      has_technology_researched = psychiatry
	}

	on_complete = {
		add_technology_progress = { progress = 26000 technology = psychiatry }
	}

	weight = 10000
	#should_be_pinned_by_default = yes
}
je_id_tool_upgrade = {
	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:han
	
				
	}

	possible = {
			has_technology_researched = lathe
			has_technology_researched = steelworking

	}

	complete = {
	OR = {
		any_scope_building = {
			is_building_type = building_textile_mills
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
				any_scope_building = {
			is_building_type = building_glassworks
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
				any_scope_building = {
			is_building_type = building_paper_mills
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
				any_scope_building = {
			is_building_type = building_steel_mills
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
				any_scope_building = {
			is_building_type = building_shipyards
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
						any_scope_building = {
			is_building_type = building_arms_industry
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
		
		
		
		}
			
	}

	fail = {
      has_technology_researched = mechanical_tools
	}

	on_complete = {
add_technology_progress = { progress = 9000 technology = mechanical_tools }

	}

	weight = 10000
	#should_be_pinned_by_default = yes
}

je_id_railroad_upgrade = {
	icon = "gfx/interface/icons/event_icons/event_industry.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:han
	
				
	}

	possible = {
		any_country = {
		has_technology_researched =  railways
		}

	}

	complete = {
		any_scope_building = {
			is_building_type = building_tooling_workshops
			occupancy >= 0.75
			cash_reserves_ratio >= 0.25
			weekly_profit > 0
			level >= 15
		}
		
						has_technology_researched = mechanical_tools
		has_technology_researched = atmospheric_engine
			
	}

	fail = {
     has_technology_researched =  railways
	}

	on_complete = {
add_technology_progress = { progress = 9500 technology = railways }

	}

	weight = 10000
	#should_be_pinned_by_default = yes
}

je_id_west_empire = {
	icon = "gfx/interface/icons/event_icons/event_skull.dds"

	is_shown_when_inactive = {

	exists = c:CHI
	this = c:CHI
	
				
	}

	possible = {
	
is_subject = no
			

	}

	complete = {
			country_rank = rank_value:great_power

		any_scope_building = {
			region = sr:region_central_asia
			is_building_type = building_barracks
			occupancy >= 1.0
			level >= 100
		}
				any_scope_building = {
			region = sr:region_central_asia
			is_building_type = building_railway
			occupancy >= 1.0
			level >= 100
		}
	}

	fail = {
      always = no
	}

	on_complete = {
							sr:region_central_asia = {
						every_scope_state = {
			
														this.state_region = {
															add_homeland = han
				add_claim = ROOT
			}
				
				}
			
			}

	}

	weight = 10000
	#should_be_pinned_by_default = yes
}
je_id_south_empire = {
	icon = "gfx/interface/icons/event_icons/event_portrait.dds"

	is_shown_when_inactive = {

	exists = c:CHI
	this = c:CHI
	
				
	}

	possible = {
		
is_subject = no
			

		

	}

	complete = {
		has_technology_researched = civilizing_mission
navy_size >= 150
country_rank = rank_value:great_power
	}

	fail = {
      always = no
	}

	on_complete = {
	custom_tooltip = je_id_nanyang_tooltip_tt
	hidden_effect = {
	sr:region_indonesia	= {
		every_scope_state = {
						this.state_region = {
				add_claim = ROOT
			}
		}
		}
		every_country = {
			limit = {
			OR = {
capital.region = sr:region_indonesia		
capital.region = sr:region_indochina		
}
is_country_type = unrecognized
	}
ROOT = {
				create_diplomatic_pact = {
			country = PREV
			type = puppet
		}
			}
		}
		}

	}

	weight = 10000
	#should_be_pinned_by_default = yes
}
